package com.example.demo.zhoushengwen.frame.utils;

import com.alibaba.fastjson.JSONObject;
import com.example.demo.Dao.PageDto;


public class JSONObjectUtil {
    public static JSONObject toLayuiTableDatas(PageDto pageDto) {
        JSONObject object = new JSONObject();
        object.put("data",pageDto.getList());
        object.put("count",pageDto.getTotal());
        object.put("msg","");
        object.put("code","0");
        return object;
    }
}
